package us.icitap.commandcenter.business.ejb.persistence;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity
@Table(name="APP_LOG",schema="MPC")
//@SequenceGenerator(name = "log_seq", sequenceName = "MPC.SQ_APP_LOG", allocationSize = 1)
public class AppLog implements Serializable {

	
	@Id
	//@GeneratedValue(generator = "log_seq")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;

	private String log;
	
	@Temporal(value = TemporalType.TIMESTAMP)
	@Column(name="LOG_DATE")
	private Date logDate;
	
	@Column(name="LOG_USER")
	private String logUser;

	public AppLog() {
		// TODO Auto-generated constructor stub
	}
	
	
	public AppLog(String log, Date logDate, String logUser) {
		super();
		this.log = log;
		this.logDate = logDate;
		this.logUser = logUser;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public Date getLogDate() {
		return logDate;
	}

	public void setLogDate(Date logDate) {
		this.logDate = logDate;
	}

	public String getLogUser() {
		return logUser;
	}

	public void setLogUser(String logUser) {
		this.logUser = logUser;
	}
	
	
	
}
